<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript"
	src="${ctx}/pages/templete/js/validate/return_goods.js"></script>


<form action="${ctx}/goods/return/submit.do" id="return_goods_form" name="return_goods_form" method="post" target="_blank">
	<input type="hidden" value="${sessionScope.gopay_webtest_key}" name="VerficationCode" id="VerficationCode">
	<table width="100%">
		
		<tr>
			<td width="30%" align=right>交易代码:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranCode"
				name="tranCode" value="${goodsinfo.tranCode }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranCodeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>商户ID:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merchantID"
				name="merchantID" value="${goodsinfo.merchantID }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="merchantIDTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>订单号:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merOrderNum"
				name="merOrderNum" value="${goodsinfo.merOrderNum }" size="50" />
			</td>
			<td width="25%" align=left> <font color=red>*</font><span id="merOrderNumTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>交易时间:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranDateTime"
				name="tranDateTime" value="<%=com.gopay.webtest.util.DateUtils.date2string(new java.util.Date(),com.gopay.webtest.util.DateUtils.DEFAULT_PATTERN ) %>" size="50" />
			</td>
			<td width="25%" align=left> <font color=red>*</font><span id="tranDateTimeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>交易金额:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranAmt" name="tranAmt"
				value="${goodsinfo.tranAmt }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranAmtTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原交易时间:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgtranDateTime"
				name="orgtranDateTime" value="${goodsinfo.orgtranDateTime }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgtranDateTimeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原订单号:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgOrderNum"
				name="orgOrderNum" value="${goodsinfo.orgOrderNum }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgOrderNumTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原交易金额:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgtranAmt"
				name="orgtranAmt" value="${goodsinfo.orgtranAmt }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgtranAmtTip"></span></td>
		</tr>

		<tr>
			<td width="30%" align=right>商户URL:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merURL" name="merURL"
				value="${goodsinfo.merURL }" size="50" />
			</td>
			<td width="25%" align=left> <span id="merURLTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>用户浏览器IP:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranIP" name="tranIP"
				value="${goodsinfo.tranIP }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranIPTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>附加信息:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="msgExt" name="msgExt"
				value="${goodsinfo.msgExt }" size="50" />
			</td>
			<td width="25%" align=left> <span id="msgExtTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>指定返回编码:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merchantEncode"
				name="merchantEncode" value="${goodsinfo.merchantEncode }" size="50" />
			</td>
			<td width="25%" align=left> <span id="merchantEncodeTip"></span></td>
		
		<tr>
			<td colspan=3>&nbsp;</td>
		</tr>
		<tr>
			<td colspan=3 width="100%">
			<center>
					<input type="button" name="def_button" id="def_button" value="设置默认值" >&nbsp;&nbsp;
					<input type="submit" name="submit" id="submit" value="开始测试" >
			</center>
			</td>
		</tr>

	</table>
</form>
<div>
	<img src="${ctx}/image/danbaochexiao.jpg" alt="" height="200px"></img>
</div>
